package _0812;

import java.util.HashSet;
import java.util.Set;

public class SetDemo {
    public static void main(String[] args) {
        Set<Point> s = new HashSet<>();
        s.add(new Point(1, 2));
        s.add(new Point(3, 4));
        s.add(new Point(5, 6));
        s.add(new Point(10, 20));
        s.add(new Point(18, 42));
        System.out.println(s);
        boolean b = s.add(new Point(10, 20));
        System.out.println(b);
        System.out.println(s);
    }
}
